package com.sm2cppa.entity;


import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

@Component
public class UserKeyMap {
    public Map<String,ArrayList<byte[]>> map = new HashMap<>();
    public byte[] chain;
    public int KeyIndex;

    public void put(String addr,ArrayList<byte[]> pkChain){
        map.put(addr,pkChain);
    }

    public ArrayList<byte[]> get(String addr){
        return map.get(addr);
    }

    public void remove(String addr){
        map.remove(addr);
    }

    public Map<String,ArrayList<byte[]>> getMap(){
        return map;
    }
}

